package cn.sumpu.app.coolsk.dao;

import java.util.List;
import java.util.Map;

import cn.sumpu.app.coolsk.domain.Trip;
import cn.sumpu.app.coolsk.domain.TripDay;
import cn.sumpu.app.coolsk.exception.AppBusinessException;

public interface TripDao {
	//
	public void insterTrip(Trip trip)throws AppBusinessException ;
	//
	public void insterTripDay(TripDay tripDay)throws AppBusinessException;
	//
	public int getTripCountByMid(Map<String, Object> map)throws AppBusinessException;
	//
	public List<Trip> getTripListByMid(Map<String, Object> map) throws AppBusinessException;
	//
	public List<TripDay> selectTripDayListBytid(Map<String, Object> map) throws AppBusinessException;
	
	/**
	 * author BruceZhang
	 * @param map
	 * @return	行程管理
	 * @throws AppBusinessException
	 */
	List<Trip> getTripList(Map<String, Object> map) throws AppBusinessException;
	int getTripCount(Map<String, Object> map) throws AppBusinessException;
	
	//
	public Trip selectTripById(String id) throws AppBusinessException;
	//
	public List<TripDay> selectDayListBytid(Map<String, Object> map) throws AppBusinessException;
	//
	public void updateTrip(Trip trip)throws AppBusinessException;
	//
	public void deleteAllDay(Map<String, Object> map)throws AppBusinessException;
}
